<!doctype html>
<!--  (Auth::check()) --> 
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <title>后台-采集豆瓣书籍-添加</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="author" content="">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <link rel="stylesheet" href="{{ asset('/bootstrap-3.3.5-dist/css/bootstrap.min.css') }}">
    <link rel="stylesheet" href="{{ asset('/style/css/admin.css') }}">
    {{-- umeditor --}}
    <link href="{{ asset('/umeditor1_2_2/themes/default/css/umeditor.css') }}" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="{{ asset('/umeditor1_2_2/third-party/jquery.min.js') }}"></script>
    <script type="text/javascript" charset="utf-8" src="{{ asset('/umeditor1_2_2/umeditor.config.js') }}"></script>
    <script type="text/javascript" charset="utf-8" src="{{ asset('/umeditor1_2_2/umeditor.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('/umeditor1_2_2/lang/zh-cn/zh-cn.js') }}"></script>
</head>
<body class="docs">

<form role="form" method="post" action="addbook" enctype="multipart/form-data">
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
<div class="form-group">
<table border="0" cellpadding="0" class="tbk">
  <tbody>
    <tr>
      <td class="alabel">书名：</td>
      <td><input type="text" class="form-control" name="bookname" id="bookname" value="{{$bookname}}"></td>
    </tr>
    <tr>
      <td class="alabel">封面：</td>
      <td>
        <input type="file" id="fengmian" name="fengmian">
        <p class="help-block">上传图书封面图片。</p>
        <p><a href="{{$images_max}}" target="_blank"><img src="{{$images_max}}" style="max-width: 135px;max-height: 200px;"></a></p>
      </td>
    </tr>
    <tr>
      <td class="alabel">原作名：</td>
      <td><input type="text" class="form-control" name="yuanzuoming" id="yuanzuoming" value="{{$yuanzuoming}}"></td>
    </tr>
    <tr>
      <td class="alabel">副标题：</td>
      <td><input type="text" class="form-control" name="fubiaoti" id="fubiaoti" value="{{$fubiaoti}}"></td>
    </tr>
    <tr>
      <td class="alabel">分类：</td>
      <td>
          <select class="form-control" name="catname" id="catname">
          <option selected value="0">请选择分类</option>
          @foreach ($cats as $cat)
          <option value="{{ $cat->cat_id }}">{{ $cat->cat_name }}</option>
          @endforeach
      </td>
    </tr>
    <tr>
      <td class="alabel">作者：</td>
      <td><input type="text" class="form-control" name="zuozhe" id="zuozhe" value="{{$zuozhe}}"></td>
    </tr>
    <tr>
      <td class="alabel">译者：</td>
      <td><input type="text" class="form-control" name="yizhe" id="yizhe" value="{{$yizhe}}"></td>
    </tr>
    <tr>
      <td class="alabel">出版社：</td>
      <td><input type="text" class="form-control" name="chubanshe" id="chubanshe" value="{{$chubanshe}}"></td>
    </tr>
    <tr>
      <td class="alabel">出版年：</td>
      <td><input type="text" class="form-control" name="chubannian" id="chubannian" value="{{$chubannian}}"></td>
    </tr>
    <tr>
      <td class="alabel">页数：</td>
      <td><input type="text" class="form-control" name="yeshu" id="yeshu" value="{{$yeshu}}"></td>
    </tr>
    <tr>
      <td class="alabel">装帧：</td>
      <td><input type="text" class="form-control" name="zhuangzhen" id="zhuangzhen" value="{{$zhuangzhen}}"></td>
    </tr>
    <tr>
      <td class="alabel">定价：</td>
      <td><input type="text" class="form-control" name="dingjia" id="dingjia" value="{{$dingjia}}"></td>
    </tr>
    <tr>
      <td class="alabel">ISBN：</td>
      <td><input type="text" class="form-control" name="isbn" id="isbn" value="{{$isbn}}"></td>
    </tr>
    <tr>
      <td class="alabel">丛书：</td>
      <td><input type="text" class="form-control" name="congshu" id="congshu" value="{{$congshu}}"></td>
    </tr>
    <tr>
      <td class="alabel">内容简介：</td>
      <td>
        <script type="text/plain" id="myEditor1" name="neirongjianjie" style="width:100%;height:240px;">{!! $neirong !!}</script>
      </td>
    </tr>
    <tr>
      <td class="alabel">作者简介：</td>
      <td>
        <script type="text/plain" id="myEditor2" name="zuozhejianjie" style="width:100%;height:240px;">{!! $zuozhejieshao !!}</script>
      </td>
    </tr>
    <tr>
      <td class="alabel">目录：</td>
      <td>
        <script type="text/plain" id="myEditor3" name="mulu" style="width:100%;height:240px;">{!! $mulu !!}</script>
      </td>
    </tr>
    <tr>
      <td></td>
      <td>
      <button type="submit" name="submit" id="submit" class="btn btn-success">确定</button>
      <button type="reset" name="reset" id="reset" class="btn btn-info">重置</button>
      </td>
    </tr>
  </tbody>
</table>
</div>
</form>
<script type="text/javascript">
    //实例化编辑器
    var um1 = UM.getEditor('myEditor1');
    var um2 = UM.getEditor('myEditor2');
    var um3 = UM.getEditor('myEditor3');    
</script>
</body>
</html>
<!-- 没有登录 -->